org.eclipse.vtp.framework.common
Interface IEncryptionEngine


public interface IEncryptionEngine

A simple interface for encrypting process configuration data.

Author:
Lonnie Pryor

Method Summary
 byte[] decrypt(byte[] cypherBytes)
          Decrypts the supplied bytes using an implementation-specific strategy.
 char[] decrypt(char[] cypherText)
          Decrypts the supplied text using an implementation-specific strategy.
 byte[] encrypt(byte[] plainBytes)
          Encrypts the supplied bytes using an implementation-specific strategy.
 char[] encrypt(char[] plainText)
          Encrypts the supplied text using an implementation-specific strategy.
 

Method Detail

encrypt

byte[] encrypt(byte[] plainBytes)
               throws java.lang.NullPointerException
Encrypts the supplied bytes using an implementation-specific strategy.

Parameters:
plainBytes - The bytes to be encrypted.
Returns:
The encrypted data.
Throws:
java.lang.NullPointerException - If plainBytes is null.

decrypt

byte[] decrypt(byte[] cypherBytes)
               throws java.lang.NullPointerException
Decrypts the supplied bytes using an implementation-specific strategy.

Parameters:
cypherBytes - The bytes to be decrypted.
Returns:
The decrypted data.
Throws:
java.lang.NullPointerException - If cypherBytes is null.

encrypt

char[] encrypt(char[] plainText)
               throws java.lang.NullPointerException
Encrypts the supplied text using an implementation-specific strategy.

Parameters:
plainText - The text to be encrypted.
Returns:
The encrypted text.
Throws:
java.lang.NullPointerException - If plainText is null.

decrypt

char[] decrypt(char[] cypherText)
               throws java.lang.NullPointerException
Decrypts the supplied text using an implementation-specific strategy.

Parameters:
cypherText - The text to be decrypted.
Returns:
The decrypted text.
Throws:
java.lang.NullPointerException - If cypherText is null.